home *** CD-ROM | disk | FTP | other *** search
- Path: prodigy.com!usenet
- From: FSMJ76A@prodigy.com (Stephen Pride)
- Newsgroups: comp.lang.c
- Subject: Re: Sorting a directory
- Date: 20 Feb 1996 03:38:44 GMT
- Organization: Prodigy Services Company 1-800-PRODIGY
- Distribution: world
- Message-ID: <4gbfo4$1tiq@useneta1.news.prodigy.com>
- References: <4gbbi9$c7s@news1.radix.net>
- NNTP-Posting-Host: inugap5.news.prodigy.com
- X-Newsreader: Version 1.2
-
- Does your C-Library have the functions opendir(), readdir(), closedir()?
- If so,
- you can use these to read the directory entries and then use a binary
- tree (or
- some other data structure) to sort the entries as they are read. You
- might also check into the "file tree walk" - ftw() - function (although
- it would probably be a bit more combersome)....
-
- Steve
-
-